package it.eng.area118.mdocommon.android.animation;

import it.eng.area118.mdocommon.android.util.AndroidApplicationContext;
import android.content.Context;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

public class FadeAnimations {

	private static Animation fadeInAnimation;

	public static Animation getFadeInAnimation(int resourceId) {
		Context context = null;

		context = AndroidApplicationContext.getInstance()
				.getApplicationContext();

		if (fadeInAnimation == null) {
			fadeInAnimation = AnimationUtils.loadAnimation(context, resourceId);
		}

		return fadeInAnimation;
	}
}
